# -*- coding:utf-8 -*-
# __author__ : "张百科"
# Date: 2021/1/25 21:13
# File: wxuser.py
# IDE: PyCharm
from django.db import models
from utils.common import prefix

class WxUser(models.Model):
    nickname = models.CharField(max_length=50)
    name = models.CharField(max_length=20, blank=True, null=True)
    user_name = models.CharField(max_length=200, blank=True, null=True)
    password = models.CharField(max_length=255)
    gender = models.IntegerField(default=0)
    register_time = models.DateTimeField(auto_now=True)
    last_login_time = models.DateTimeField(auto_now=True)
    mobile = models.CharField(max_length=20, blank=True, null=True)
    avatar = models.CharField(max_length=1000, blank=True, null=True)
    open_id = models.CharField(max_length=255)
    is_delete = models.IntegerField(default=0)

    class Meta:
        managed = False
        db_table = prefix+'wx_user'